#pragma once

#include "Producer.h"
#include <ClanLib/sound.h>
#include <ClanLib/core.h>
#include "../common.h"

namespace AudioEngine
{
	class PlaySession
	{
		sp<Producer const> producer;
		CL_SoundBuffer_Session base_session;
		CL_SlotContainer slot_container;

	public:
		PlaySession(sp<Producer const> producer);
		~PlaySession();

		sp<Producer const> get_producer() const;
		
		void start();
		void stop();
	};
}